package com.niguang.work.api.mapper;

import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.baomidou.mybatisplus.plugins.Page;
import com.niguang.work.api.entity.ReformContent;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 'work.v_personSite' is not BASE TABLE Mapper 接口
 * </p>
 *
 * @author 12380
 * @since 2018-09-06
 */
public interface ReformContentMapper extends BaseMapper<ReformContent> {

    List<ReformContent> getMyReformContent(@Param("openId") String openId, @Param("siteId") Long siteId, @Param("formFlag") Integer formFlag, Page<ReformContent> page);


    List<ReformContent> getApplyList(@Param("siteId") Long siteId, @Param("formFlag") Integer formFlag, @Param("openId") String openId,
                                     @Param("key") String key);

    Integer updateReject(@Param("contentApplyFlag") Integer contentApplyFlag, @Param("enableFlag") Integer enableFlag,
                         @Param("reformApplyFlag") Integer reformApplyFlag, @Param("dealFlag") Integer dealFlag, @Param("id") Long id);

}
